//
//  MusicPlay.h
//  练习11
//
//  Created by 张琦 on 15/11/23.
//  Copyright © 2015年 张琦. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol MyMusicPlayDelegate <NSObject>
@optional
- (void)musicPlayWithProgress:(float)progress during:(float)during; // 获取播放进度
- (void)musicPlayFinished;  // 播放结束


@end
@interface MusicPlay : NSObject

@property (nonatomic, assign) id<MyMusicPlayDelegate> delegate;


@property (nonatomic, copy) NSString *urlStr;
@property (nonatomic, assign) float during;
- (void)playSong;
- (void)pauseSong;
- (void)stopSong;
- (void)sliderToTimer:(float)time;
+ (instancetype)shareMusicPlay;
@end









